﻿using NP.BPMReportPlatform.ElectronicSign;
using NP.BPMReportPlatform.ElectronicSign.Dto;
using NP.BPMReportPlatform.Entities.BPM_Platform;
using System.IO;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace NP.BPMReportPlatform.ElectronicSign
{
    /// <summary>
    /// Risk对外接口
    /// </summary>
    public interface IRiskService : IApplicationService
    {
        /// <summary>
        /// 发起合同签署
        /// </summary>
        /// <param name="businessCode"></param>
        /// <returns></returns>
        Task<string> CreateRisk(string businessCode);

        /// <summary>
        /// 状态回调接口
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<RiskDto.UpdateResponseData> UpdateStatus(RiskDto.UpdateRequestData request);
    }
}
